import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import { createStyleImportPlugin, VantResolve } from "vite-plugin-style-import";
import { resolve } from "path";

// https://vitejs.dev/config/
export default defineConfig({
    plugins: [
        vue(),
        createStyleImportPlugin({
            resolves: [VantResolve()],
        }),
    ],
    resolve: {
        alias: {
            "@": resolve(__dirname, "src"), // 设置 `@` 指向 `src` 目录
            "@@": resolve(__dirname, "packages"), // 设置 `@` 指向 `src` 目录
        },
    },
    base: "./", // 设置打包路径
});
